#{extends 'CRUD/layout.html' /}

<div id="crudList" class="${type.name}">
	
	<h2 id="crudListTitle" style="display:inline"><a href="@{list}">&{'crud.list.title', type.name}</a></h2>
	<span> 
	#{list items:parents,as:'p'}
		&gt; <a href="@{list(p.id)}">${p.name}</a>
	#{/list}
	</span>
	<div id="crudListTable">
		#{crud.table fields:['name','priority','creator','createTime','modifier','updateTime'],sort:' '}
			#{crud.custom 'name'}
				<a href="@{list(object.id)}">${object.name}</a>
			#{/crud.custom}
		#{/crud.table}
	</div>
	
	<div id="crudListPagination">
		#{crud.pagination /}
	</div>
	
	<div id="crudListTool">
			<a href="@{blank(parent)}">&{'crud.add',''}</a>
	
		#{if parent!=rootId}
			<a href="@{show(parent)}">&{'crud.edit'}</a>
		#{/if}
	</div>
</div>
